/**
 * 用户相关的请求
 */
import Urls from '../ApiUrls';
import ApiBase from './ApiBase';

class ApiPlugin {
  targetCustomerList(parms){
    return ApiBase.send(Urls.URL_TARGET_CUSTOMER_LIST, parms);
  }
  assignToEmployee(parms) {
    return ApiBase.send(Urls.URL_ASSIGN_TO_EMPLOYEE, parms);
  }
  targetCustomerManegeList(parms){
    return ApiBase.send(Urls.URL_TARGET_CUSTOMER_MANEGELIST, parms);
  }
  getCustomerInfoById(parms){
    return ApiBase.send(Urls.URL_TARGET_CUSTOMER_BY_ID, parms);
  }
  batchSetCustomerState(parms){
    return ApiBase.send(Urls.URL_BATCH_SET_CUSTOMER_STATE, parms);
  }
  saveCustomerInfo(parms){
    return ApiBase.send(Urls.URL_SAVE_CUSTOMER_INFO, parms);
  }
  deleteCustomers(parms) {
    return ApiBase.send(Urls.URL_DELETE_CUSTOMERS, parms);
  }
  saveCustomerOpRecord(parms){
    return ApiBase.send(Urls.URL_SAVE_CUSTOMER_OPRECORD, parms);
  }
  queryCustomerOpRecord(parms){
    return ApiBase.send(Urls.URL_QUERY_CUSTOMER_OPRECORD, parms);
  }
  customerInfoSetInvalid(parms){
    return ApiBase.send(Urls.URL_CUSTOMERINFOSETINVALID, parms);
  }
  invalidCustomerInfo(parms){
    return ApiBase.send(Urls.URL_INVALID_CUSTOMER_INFO, parms);
  }
  setCustomerEffective(parms){
    return ApiBase.send(Urls.URL_SET_CUSTOMER_EFFECTIVE, parms);
  }
  getCustomerInfoRecordList(parms){
    return ApiBase.send(Urls.URL_GET_CUSTOMER_INFO_RECORD_LIST, parms);
  }
  getImportRecordList(parms){
    return ApiBase.send(Urls.URL_IMPROT_RECORD_LIST, parms);
  }
  findSameWebsite(parms){
    return ApiBase.send(Urls.URL_SAME_WEBSITE_OF_CUSTOMER, parms);
  }
  getCustomerByWebsite(parms){
    return ApiBase.send(Urls.URL_GET_CUSTOMER_BY_WEBSITE, parms);
  }
  importInstagramAccountsByCsv(){
    return Urls.URL_IMPORT_INSTAGRAM_BY_CSV;
  }
  importWebsiteAccounts(){
    return Urls.URL_IMPORT_WEBSITE;
  }
  clearSameWebsitesCustomers(parms){
    return ApiBase.send(Urls.URL_DELETE_CUSTOMERS_BY_URLS, parms);
  }
}
export  default  ApiPlugin
